<!-- Menu -->
<nav data-am-widget="menu" class="am-menu  am-menu-offcanvas1" data-am-menu-offcanvas>
    <a href="javascript: void(0)" class="am-menu-toggle">
        <i class="am-menu-toggle-icon am-icon-bars"></i>
    </a>

    <div class="am-offcanvas">
        <div class="am-offcanvas-bar">
            <ul class="am-menu-nav sm-block-grid-1">
                <if condition="session('role') eq 0">
                    <li class="">
                        <a href="{:U('Order/order')}">首页</a>
                    </li>
                </if>
                <li class="am-parent">
                    <a href="##">订单管理</a>
                    <ul class="am-menu-sub am-collapse  sm-block-grid-2 ">
                        <if condition="(session('role') eq 0) OR (session('role') eq 5)">
                            <li class="">
                                <a href="{:U('Order/orderList')}">已预约</a>
                            </li>
                        </if>
                        <if condition="session('role') neq 4">
                            <li>
                                <a href="{:U('Order/orderList3')}">已派单</a>
                            </li>
                        </if>
                        <if condition="session('role') eq 4">
                            <li><a href="{:U('Order/orderList4')}">已量衣</a></li>
                            <else/>
                            <li><a href="{:U('Order/orderList2')}">待分配</a></li>
                            <li><a href="{:U('Order/orderList2_1')}">已分配</a></li>
                        </if>
                        <if condition="session('role') eq 4">
                            <li><a href="{:U('Order/endList_gc')}">已完成</a></li>
                            <else/>
                            <li><a href="{:U('Order/endList')}">工厂完工单</a></li>
                        </if>
                        <if condition="session('role') eq 0">
                            <li class="">
                                <a href="{:U('Order/psList')}">待配送</a>
                            </li>
                            <li class="">
                                <a href="{:U('Order/ps_endList')}">已配送</a>
                            </li>
                        </if>
                        <if condition="session('role') eq 4">
                            <li><a href="{:U('Order/returnList_gc')}">返工单</a></li>
                            <else/>
                            <li><a href="{:U('Order/returnList')}">返工单</a></li>
                        </if>
                    </ul>
                </li>
                <if condition="session('role') eq 0 OR (session('role') eq 5) OR (session('role') eq 2)">
                    <li class="am-parent">
                        <a href="##">用户管理</a>
                        <ul class="am-menu-sub am-collapse  sm-block-grid-3 ">
                            <li class="">
                                <a href="{:U('User/userList')}">客户列表</a>
                            </li>
                            <if condition="session('role') eq 0">
                                <li class="">
                                    <a href="{:U('User/userList2')}">员工列表</a>
                                </li>
                            </if>
                        </ul>
                    </li>
                </if>
                <if condition="session('role') eq 0">
                    <li class="am-parent">
                        <a href="#c3">权限管理</a>
                        <ul class="am-menu-sub am-collapse sm-block-grid-3">
                            <li class="">
                                <a href="{:U('User/create')}">创建账号</a>
                            </li>
                            <li class="">
                                <a href="##">权限分配</a>
                            </li>
                        </ul>
                    </li>
                    <li class="am-parent">
                        <a href="##">参数管理</a>
                        <ul class="am-menu-sub am-collapse am-avg-sm-3">
                            <li class="">
                                <a href="{:U('Basic/colorList')}">面料管理</a>
                            </li>
                        </ul>
                    </li>
                </if>
            </ul>
        </div>
    </div>
</nav>